package com.hxrfid.project.domain.bo;

import com.hxrfid.common.core.domain.BaseEntity;
import com.hxrfid.common.core.validate.AddGroup;
import com.hxrfid.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 分销员业务对象 bs_distributor
 *
 * @author hxrfid
 * @date 2025-07-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BsDistributorBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 用户昵称
     */
    @NotBlank(message = "用户昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickName;

    /**
     * 头像地址
     */
    private String avatar;

    /**
     * 城市id
     */
    @NotNull(message = "城市id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long areaId;

    /**
     * 区域
     */
    @NotBlank(message = "区域不能为空", groups = { AddGroup.class, EditGroup.class })
    private String area;

    /**
     * 城市
     */
    @NotBlank(message = "城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaAddr;

    /**
     * 注册时间
     */
    @NotNull(message = "注册时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date registerTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 租户编码
     */
    private Long tenantId;

    /**
     * 订单状态
     */
    private List<String> orderStatusArr;

    private String[] orderTimeArr;
}
